package com.mall.service.impl.sys;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mall.entity.sys.ProdtypeEO;
import com.mall.exception.MsgException;
import com.mall.mapper.sys.ProdtypeMapper;
import com.mall.service.sys.IProdtypeService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 商品分类ID 服务实现类
 * </p>
 *
 * @author Dczzs
 * @since 2020-07-01
 */
@Service
public class ProdtypeServiceImpl extends ServiceImpl<ProdtypeMapper, ProdtypeEO> implements IProdtypeService {


	@Override
	public boolean delete(Integer id) {
	  boolean yn = 	removeById(id);
	  if(yn) {
		  return true;
	  }else {
		  
		  throw new MsgException("删除失败！！！");
	  }
		
	}

	
	
}
